﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="teacherlist.aspx.cs" Inherits="OnlineTestUI.BackManager.teacherlist" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <f:PageManager ID="PageManager1" AutoSizePanelID="GridTeacher" runat="server"></f:PageManager>
            <f:Grid ID="GridTeacher" Title="表格" EnableFrame="true" EnableCollapse="true" Width="100%" PageSize="5" ShowBorder="true" ShowHeader="true"
                AllowPaging="true" runat="server" EnableCheckBoxSelect="True"
                DataKeyNames="id" IsDatabasePaging="true" OnPageIndexChange="GridTeacher_PageIndexChange"
                AllowSorting="true" SortField="realname" SortDirection="ASC"
                OnSort="GridTeacher_Sort">
                <Columns>
                    <f:RowNumberField />
                    <f:BoundField Width="100px" DataField="realname" SortField="realname" DataFormatString="{0}"
                        HeaderText="老师姓名" />
                    <f:BoundField Width="100px" DataField="username" SortField="username" DataFormatString="{0}"
                        HeaderText="登录名" />
                    <f:BoundField Width="100px" DataField="description" SortField="description" DataFormatString="{0}"
                        HeaderText="简介" />
                    <f:BoundField Width="100px" DataField="createtime" SortField="createtime" DataFormatString="{0}"
                        HeaderText="添加时间" />
                    <f:BoundField Width="100px" DataField="createid" SortField="createid" DataFormatString="{0}"
                        HeaderText="添加人" />
                    <f:BoundField Width="100px" DataField="status" SortField="status" DataFormatString="{0}"
                        HeaderText="状态" />
                    <f:BoundField Width="100px" DataField="roleid" SortField="roleid" DataFormatString="{0}"
                        HeaderText="所属角色" />
                    <f:BoundField Width="100px" DataField="lastlogintime" SortField="lastlogintime " DataFormatString="{0}"
                        HeaderText="上次登录时间" />
                    
                    <f:HyperLinkField HeaderText="编辑" DataToolTipField="Id" DataTextField="Id"
                        DataTextFormatString="编辑" DataNavigateUrlFields="Id" DataNavigateUrlFormatString="updateteacher.aspx?id={0}"
                        DataNavigateUrlFieldsEncode="true" Target="_self" ExpandUnusedSpace="True" />
                </Columns>
            </f:Grid>
            <br />
        </div>
    </form>
</body>
</html>

